package com.taobaolite.transaction;

import com.taobaolite.user.UserBody;

import java.sql.Timestamp;

public class TransactionBody {
    private UserBody userFrom;
    private UserBody userTo;
    private Timestamp time;
    private Double total;

    public TransactionBody(UserBody userFrom, UserBody userTo, Timestamp time, Double total) {
        this.userFrom = userFrom;
        this.userTo = userTo;
        this.time = time;
        this.total = total;
    }

    public TransactionBody() {}

    public UserBody getUserFrom() {
        return userFrom;
    }

    public void setUserFrom(UserBody userFrom) {
        this.userFrom = userFrom;
    }

    public UserBody getUserTo() {
        return userTo;
    }

    public void setUserTo(UserBody userTo) {
        this.userTo = userTo;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }
}
